Skip to content

fix(#45): structural batching uses device qubit count for non-overlapping placement - #97

Merged
Manideep3969 merged 1 commit into
mainfrom
fix/issue-45-structural-batching
Aug 19, 2026
Merged

fix(#45): structural batching uses device qubit count for non-overlapping placement#97
Manideep3969 merged 1 commit into
mainfrom
fix/issue-45-structural-batching

Conversation

@Manideep3969

Copy link
Copy Markdown
Owner

Fixes structural batching to use device qubit count (max_qubits) instead of virtual qubit set overlap. Circuits of the same size can now be batched together on large devices. 3 regression tests added. All 337 tests pass.

…ping placement

_structural_batch used set(range(circuit.num_qubits)) to track qubit
usage, making any two same-size circuits always overlap. On a 127-qubit
device, four 3-qubit circuits should batch together.

Fix: Track cumulative qubit count against max_qubits instead of
checking virtual qubit set overlap. Circuits are now batched as long
as total qubits fit within the device capacity.
@Manideep3969
Manideep3969 merged commit fd9ce9b into main Aug 19, 2026
4 checks passed
@Manideep3969
Manideep3969 deleted the fix/issue-45-structural-batching branch August 19, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant